Containers are used to wrap the main content of your website or application and control its maximum width. By default, Tailwind provides a container component that sets a max-width on the content and centers it horizontally within the parent element.
Breakpoint | Min-width |
sm | 640px |
md | 768px |
lg | 1024px |
xl | 1280px |
2xl | 1536px |
<div class="container mx-auto">
<!-- Your content here -->
</div>